package com.crm.controller;

import com.crm.domain.DataGridView;
import com.crm.service.PermissionService;
import com.crm.vo.PermissionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PermissionController{
    @Autowired
    private PermissionService permissionService;

    @GetMapping(value = "/permissions.do")
    public DataGridView goPermissionList(PermissionVo permissionVo){
        return permissionService.findAllPermissions(permissionVo);
    }
}
